import service from '@/utils/request'

// @Tags UserGoodsInfo
// @Summary 创建UserGoodsInfo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserGoodsInfo true "创建UserGoodsInfo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /userGoodsInfo/createUserGoodsInfo [post]
export const createUserGoodsInfo = (data) => {
  return service({
    url: '/userGoodsInfo/createUserGoodsInfo',
    method: 'post',
    data
  })
}

// @Tags UserGoodsInfo
// @Summary 删除UserGoodsInfo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserGoodsInfo true "删除UserGoodsInfo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /userGoodsInfo/deleteUserGoodsInfo [delete]
export const deleteUserGoodsInfo = (data) => {
  return service({
    url: '/userGoodsInfo/deleteUserGoodsInfo',
    method: 'delete',
    data
  })
}

// @Tags UserGoodsInfo
// @Summary 删除UserGoodsInfo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除UserGoodsInfo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /userGoodsInfo/deleteUserGoodsInfo [delete]
export const deleteUserGoodsInfoByIds = (data) => {
  return service({
    url: '/userGoodsInfo/deleteUserGoodsInfoByIds',
    method: 'delete',
    data
  })
}

// @Tags UserGoodsInfo
// @Summary 更新UserGoodsInfo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserGoodsInfo true "更新UserGoodsInfo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /userGoodsInfo/updateUserGoodsInfo [put]
export const updateUserGoodsInfo = (data) => {
  return service({
    url: '/userGoodsInfo/updateUserGoodsInfo',
    method: 'put',
    data
  })
}

// @Tags UserGoodsInfo
// @Summary 用id查询UserGoodsInfo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.UserGoodsInfo true "用id查询UserGoodsInfo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /userGoodsInfo/findUserGoodsInfo [get]
export const findUserGoodsInfo = (params) => {
  return service({
    url: '/userGoodsInfo/findUserGoodsInfo',
    method: 'get',
    params
  })
}

// @Tags UserGoodsInfo
// @Summary 分页获取UserGoodsInfo列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取UserGoodsInfo列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /userGoodsInfo/getUserGoodsInfoList [get]
export const getUserGoodsInfoList = (params) => {
  return service({
    url: '/userGoodsInfo/getUserGoodsInfoList',
    method: 'get',
    params
  })
}
